package com.rul.mars.common.exception;

import com.rul.mars.common.api.CommonResultCode;

/**
 * 自定义异常抛出类
 *
 * @author RuL
 */
public class Asserts {

    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(CommonResultCode resultCode) {
        throw new ApiException(resultCode);
    }
}
